﻿using Centa.Agency.Repository.Interface;
using Centa.Agency.Repository.Service;

using Unity;

namespace Centa.Agency.Factory.Unity
{
    public class RepositoryFactory
    {
        static IUnityContainer Container = new UnityContainer();
        public static IUserInfoRepository CreateUserInfoAppService()
        {
            Container.RegisterType<IUserInfoRepository, UserInfoRepository>();
            return Container.Resolve<IUserInfoRepository>();
        }
    }
}
